package com.ls;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;

/**
 * @author ls
 */
@SpringBootApplication
@MapperScan("com.ls.mapper")
public class CommunityApplication {

    /**
     * 功能描述: <br>
     * 解决netty启动冲突问题
     * see Netty4Utils.setAvailableProcessors()
     *
     * @author ls
     * @date 2021/8/21 16:48
     */
    @PostConstruct
    public void init() {
        System.setProperty("es.set.netty.runtime.available.processors", "false");
    }

    public static void main(String[] args) {
        SpringApplication.run(CommunityApplication.class, args);
    }

}
